package com.parleys.service.intf;

import android.graphics.Bitmap;

import com.parleys.domain.Presentation;
import com.parleys.helper.MP3DownloadCallback;

/**
 * Used to get images and audio tracks from presentations. The image download has a 2 level cache (on disk and in
 * memory). So fetching the same image twice will go substantially faster the second time.
 * 
 * @author David Van Droogenbroeck
 * 
 */
public interface PresentationAssetsService {

	Boolean isImageCached(Integer objectId, String asset);

	Bitmap getImage(String assetBaseUrl, String type, Integer presentationId, String asset);

	void downloadMP3(String assetBaseURL, Presentation presentation, MP3DownloadCallback callback);
}
